/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.unicamp.ic.sgct.client.apresentacao.ucs;

import br.unicamp.ic.sgct.client.aplicacao.conferencia.ConferenciaListener;



import com.google.gwt.user.client.ui.DecoratedTabPanel;



import com.google.gwt.user.client.ui.ScrollPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import org.gwtiger.client.screen.BaseScreen;


/**
 *
 * @author arthur
 */
public abstract class BaseConferenciaScreen extends BaseScreen {
    //
    protected DecoratedTabPanel panelTabOpcoes = new DecoratedTabPanel();
    
    //

    protected BaseConferenciaScreen() {
        super();
    }

    

    
    

    

    //protected abstract void initPanel(VerticalPanel panelGeral);

    protected ScrollPanel initPanel(ConferenciaListener controladoraConferencia) {
        VerticalPanel panelGeral = new VerticalPanel();
        panelGeral.add(controladoraConferencia.getMensagemWidget());
        //this.initPanel(panelGeral);
        panelGeral.add(initPanelTabOpcoes());
        panelGeral.setWidth("95%");
        panelGeral.setSpacing(6);
        String width = String.valueOf(panelGeral.getOffsetWidth()) + "px";
        ScrollPanel panelScroll = new ScrollPanel();
        panelScroll.add(panelGeral);
        panelScroll.setSize(width, "5px");
        panelScroll.setAlwaysShowScrollBars(true);
        panelScroll.ensureVisible(panelGeral);
        return panelScroll;
    }

    protected abstract DecoratedTabPanel initPanelTabOpcoes();

    
}
